home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: Jan & Gord Wait <nwho@www.nwho.com>
- Newsgroups: comp.lang.c++,comp.lang.java
- Subject: Re: Java: What's the Big Deal?
- Date: Mon, 01 Apr 1996 20:22:11 -0800
- Organization: NorthWest Homes Online
- Message-ID: <3160AB73.6653@www.nwho.com>
- References: <milodDoF9JF.K32@netcom.com> <1996Mar20.154600.12011@amc.com>
- <milodDoL1uy.581@netcom.com> <4jpvus$6hu@wavefront.wavefront.com>
- NNTP-Posting-Host: line171.nwm.mindlink.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
-
- Pohl Longsine wrote:
- >
- > In <milodDoL1uy.581@netcom.com> John DiCamillo wrote:
- > > curtis@amc.com (Curtis Green) writes:
- > > >John DiCamillo (milod@netcom.com) wrote:
- > > >: pete@borland.com (Pete Becker) writes:
- > >
- > > >: >There's no reason you can't write a C++ compiler that generates a Java
- > > >: >bytestream.
- > >
- > > >: Are you claiming that arbitrary, correct (ANSI) C++ code can
- > > >: be compiled to the JVM and continue to work correctly?
- >
- > Since Java is based upon a VM with an "instruction set" one could write a
- > compiler for any language, the output for which is the "object code" of the
- > VM. (Unless there's some design flaw in the VM architecture that I'm
- > unaware of.)
- >
- > Any compiler gurus out there that can explain why I might be wrong here?
- > --
- > pohl@screaming.org
- > http://mmm.screaming.org/
-
- It might not be impossible, but it wouldn't be trivial: C and C++ support
- direct address pointers, that usually end up as address references in machine
- language (which is why C and C++ can be fast). Java won't let you get at
- address pointers, so you would have to build a fake higher level memory system
- in java VM to support the pointers from the C ish source code.. ugghhh..
-